#pragma once

#include <gl/glew.h>
#define NO_SDL_GLEXT //we want to use glew for extensions, not sdl.
#include <SDL.h>
#include "SDL_opengl.h"

struct Color;
void setColor(Color c);
void setColor(int,int,int);
void setColor(int,int,int,int);

void clearColor(Color c);
void clearColor(int, int, int);


struct Color
{
	float r,g,b,a;
	Color():r(0),g(0),b(0),a(0)
	{}
	Color(int r, int g, int b):r(r),g(g),b(b),a(255)
	{}
	Color(int r, int g, int b, int a):r(r),g(g),b(b),a(a)
	{}
	Color operator=(Color c)
	{
		r = c.r;
		g = c.g;
		b = c.b;
		a = c.a;
		return c;
	}
};